package stu.action;

import javax.servlet.http.HttpServletRequest;

import stu.model.Model;
import stu.model.User;

public class LoginAction implements Action {

	@Override
	public String excute(Model m, HttpServletRequest req) {
		User u = (User)m;
		String result = "shibai.html";
		req.setAttribute("user", u);
		if(u.getLoginname().equals("123")){
			result = "success.jsp";
		}
		return result;
	}

}
